package chap5;

/**
 * @author oldliu
 * @since 1.0
 */
public class Qiuhe {
    public static void main(String[] args) {
        int sum=0;//放和的值
        int start=1;
        while (start<=100){
            if(start%2==0){
                sum=sum+start;

            }
            start++;
        }
        System.out.println("1-100之间的偶数和是："+sum);
    }
}
